-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: share the test util path_in_resources #2052
base: main
Are you sure you want to change the base?
Conversation
Artifacts upload triggered. View details here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 9 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware)
crates/starknet_api/src/test_utils.rs
line 23 at r1 (raw file):
/// file in the folder "resources". pub fn path_in_resources<P: AsRef<Path>>(file_path: P) -> PathBuf { Path::new(&env::var("CARGO_MANIFEST_DIR").unwrap()).join("resources").join(file_path)
Can this use get_abs_path
instead of reading the env variable?
Code quote:
Path::new(&env::var("CARGO_MANIFEST_DIR").unwrap()).join("resources").join(file_path)
99c0f2f
to
e127c69
Compare
e011876
to
b227fe1
Compare
Artifacts upload triggered. View details here |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2052 +/- ##
===========================================
+ Coverage 40.10% 77.23% +37.12%
===========================================
Files 26 376 +350
Lines 1895 39827 +37932
Branches 1895 39827 +37932
===========================================
+ Hits 760 30760 +30000
- Misses 1100 6778 +5678
- Partials 35 2289 +2254 ☔ View full report in Codecov by Sentry. |
e127c69
to
604ce23
Compare
b227fe1
to
c3da22e
Compare
Artifacts upload triggered. View details here |
c3da22e
to
3875651
Compare
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 9 files reviewed, 1 unresolved discussion (waiting on @Itay-Tsabary-Starkware)
crates/starknet_api/src/test_utils.rs
line 23 at r1 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Can this use
get_abs_path
instead of reading the env variable?
Code shared between the two.
3875651
to
83a4abe
Compare
Artifacts upload triggered. View details here |
83a4abe
to
c13d674
Compare
Artifacts upload triggered. View details here |
No description provided.